package br.com.upper.business;

import java.util.List;

import br.com.upper.dao.InstanceTypeDAO;
import br.com.upper.entity.InstanceType;

public class InstanceTypeBO implements IInstanceTypeBO {

	private InstanceTypeDAO instanceTypeDAO;
	
	public InstanceTypeBO() {
		this.instanceTypeDAO = new InstanceTypeDAO();
	}
	
	public void save(InstanceType objeto) {
		this.instanceTypeDAO.save(objeto);
	}
	
	public void delete(InstanceType objeto) {
		this.instanceTypeDAO.delete(objeto);
	}
	
	public InstanceType findByID(Long id) {
		return this.instanceTypeDAO.findByID(id);
	}
	
	public List<InstanceType> findAll() {
		return this.instanceTypeDAO.findAll();
	}
	
	public List<InstanceType> findOtherInstancesTest() {
		return this.instanceTypeDAO.findOtherInstancesTest();
	}
	
}
